/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.constants;

/**
 * 请在此处添加注释
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: HadoopCnst.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
public class HadoopCnst {
    public static final String ENV_HADOOP_HOME = "HADOOP_HOME";
    public static final String ENV_HADOOP_CONF_DIR = "SPARK_CONF_DIR";
    public static final String ENV_HADOOP_PID_DIR = "HADOOP_PID_DIR";
    public static final String ENV_HADOOP_MAPRED_HOME = "HADOOP_MAPRED_HOME";
    public static final String ENV_HADOOP_HDFS_HOME = "HADOOP_HDFS_HOME";
    public static final String ENV_HADOOP_COMMON_HOME = "HADOOP_COMMON_HOME";
    public static final String ENV_HADOOP_YARN_HOME = "HADOOP_YARN_HOME";
    public static final String ENV_YARN_HOME = "YARN_HOME";
    public static final String ENV_YARN_CONF_DIR = "YARN_CONF_DIR";
    public static final String ENV_YARN_LOG_DIR = "YARN_LOG_DIR";
    public static final String ENV_HBASE_HOME = "HBASE_HOME";

    /**
     * 操作类型
     */
    public enum OpType {
        /**
         * 上传
         */
        FS("fs", "文件系统(FS)Shell命令");
        /**
         * code
         */
        public final String code;

        /**
         * title
         */
        public final String title;

        /**
         * @param code
         * @param title
         */
        OpType(String code, String title) {
            this.code = code;
            this.title = title;
        }
    }

    /**
     * 文件系统(FS)Shell命令参数
     */
    public enum FsParms {
        /**
         * 上传
         */
        PUT(" -put ", "上传");
        /**
         * code
         */
        public final String code;

        /**
         * title
         */
        public final String title;

        /**
         * @param code
         * @param title
         */
        FsParms(String code, String title) {
            this.code = code;
            this.title = title;
        }
    }
}
